<%--
  Created by IntelliJ IDEA.
  User: H64
  Date: 2021/4/21
  Time: 20:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
    <title>数据库商品信息</title>
</head>
<body>

<jsp:include page="/GoodServlet" />
<table class="table table-hover">
    <thead>
    <tr>
        <th>商品编号</th>
        <th>商品名称</th>
        <th>商品数量</th>
        <th>商品价格</th>
        <th>商品类型</th>
        <th>修改</th>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${sessionScope.listGood}" var="eachRow" varStatus="st">
        <%--    eachRow 当前遍历的数据 是一个 GoodssalesBean 实体类 循环显示数据 --%>
        <tr>
            <td>${eachRow.GOODSID}</td>
            <td>${eachRow.GOODSNAME}</td>
            <td>${eachRow.GOODSNUM}</td>
            <td>${eachRow.GOODSPRICE}</td>
            <td>${eachRow.GOODSTYPE}</td>
            <th><a class="btn btn-default" href="JumpServlet?id=${eachRow.DEPTNO}" role="button">修改</a></th>
        </tr>
    </c:forEach>
    </tbody>
</table>
</body>
</html>
